import http from '@/api'
import type {IBase} from "@/api/interface/base";

// 总人数
export const getUserTotalApi = (params: IBase.params) => {
  return http.post<IBase.showDataSalary>( `userInfo/userTotal`, params, { loading: false })
}

// 总工资
export const getSalaryTotalApi = (params: IBase.params) => {
  return http.post<IBase.showDataSalary>( `userInfo/salaryTotal`, params, { loading: false })
}

// 人力占比
export const getPeopleRatioApi = (params: IBase.params) => {
  return http.post<IBase.showDataSalary>( `userInfo/peopleRatio`, params, { loading: false })
}

// 各组人员数据
export const getGroupUserAndSalaryApi = (params: IBase.params) => {
  return http.post<IBase.showDataSalary>( `userInfo/groupUserAndSalary`, params, { loading: false })
}

// 产品分类
export const getProductTypeApi = (params: IBase.params) => {
  return http.post<IBase.showDataSalary>( `tlWlPj/productType`, params, { loading: false })
}

// 产品数据分析--铁量-M09量
export const getYTieAndMApi = (params: IBase.params) => {
  return http.post<IBase.showDataSalary>( `tlWlPj/yTieAndM`, params, { loading: false })
}

//客户销售额对比
export const getCustomerSalesComparisonApi = (params: IBase.params) => {
  return http.post<IBase.showDataSalary>( `sales/customerSalesComparison`, params, { loading: false })
}

// 销售实时数据
export const getRealTimeDataApi = (params: IBase.params) => {
  return http.post( `sales/realTimeData`, params, { loading: false })
}

// 综合指标-出货金额
export const getSalesAmountApi = (params: IBase.params) => {
  return http.post( `sales/salesAmount`, params, { loading: false })
}

// 综合指标-收款状况
export const getPaymentStatusApi = (params: IBase.params) => {
  return http.post( `sales/paymentStatus`, params, { loading: false })
}

// 综合指标-出货柜数
export const getSalesNumberApi = (params: IBase.params) => {
  return http.post( `sales/salesNumber`, params, { loading: false })
}

// 人员支出-月
export const getUserExpensesMonthApi = (params: IBase.params) => {
  return http.post( `userInfo/userExpensesMonth`, params, { loading: false })
}
// 人员支出-年
export const getUserExpensesYearApi = (params: IBase.params) => {
  return http.post( `userInfo/userExpensesYear`, params, { loading: false })
}

// 能耗情况
export const getEnergyAmountMonthApi = (params: IBase.params) => {
  return http.post( `energy/energyAmountMonth`, params, { loading: false })
}

// 费用
export const getFindEnergyDataListApi = (params: IBase.params) => {
  return http.post( `energy/findEnergyDataList`, params, { loading: false })
}

// 耗材
export const getConsumableExpensesMonthApi = (params: IBase.params) => {
  return http.post( `consumableSource/consumableExpensesMonth`, params, { loading: false })
}